package com.ruoyi.project.payment.order.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 支付订单对象 order
 *
 * @author shixiangwen
 * @date 2019-12-04
 */
public class Order extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * null
     */
    private Long id;

    /**
     * 订单ID
     */
    @Excel(name = "订单ID")
    private String orderNo;

    /**
     * APP
     */
    @Excel(name = "APP")
    private String app;

    /**
     * kkid
     */
    @Excel(name = "kkid")
    private Long kkid;

    /**
     * 总金额
     */
    @Excel(name = "总金额")
    private Long totalFee;

    /**
     * 订单状态
     */
    @Excel(name = "订单状态")
    private Long status;

    /**
     * 用户IP
     */
    @Excel(name = "用户IP")
    private String ip;

    /**
     * 支付结果
     */
    @Excel(name = "支付结果")
    private Long payResult;

    /**
     * 支付时间
     */
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /**
     * 通知状态
     */
    @Excel(name = "通知状态")
    private Long notifyStatus;

    /**
     * 通知时间
     */
    @Excel(name = "通知时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date notifyTime;

    /**
     * 支付类型
     */
    @Excel(name = "支付类型")
    private String paytype;

    /**
     * null
     */
    private String payResponse;

    /**
     * 支付订单ID
     */
    @Excel(name = "支付订单ID")
    private String payOrderNo;

    /**
     * 下单时间
     */
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String product;

    /**
     * 预支付ID
     */
    @Excel(name = "预支付ID")
    private String prepayId;

    /**
     * 业务订单ID
     */
    @Excel(name = "业务订单ID")
    private String bizOrderNo;

    private String yuan;

    /**
     * null
     */
    private String notifyUrl;

    private String refundNotifyUrl;
    private Integer refundEnable;

    private String refundRemark;

    private String ipInfo;

    private Integer sanbox;

    private String channel;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getApp() {
        return app;
    }

    public void setKkid(Long kkid) {
        this.kkid = kkid;
    }

    public Long getKkid() {
        return kkid;
    }

    public void setTotalFee(Long totalFee) {
        this.totalFee = totalFee;
    }

    public Long getTotalFee() {
        return totalFee;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getIp() {
        return ip;
    }

    public void setPayResult(Long payResult) {
        this.payResult = payResult;
    }

    public Long getPayResult() {
        return payResult;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setNotifyStatus(Long notifyStatus) {
        this.notifyStatus = notifyStatus;
    }

    public Long getNotifyStatus() {
        return notifyStatus;
    }

    public void setNotifyTime(Date notifyTime) {
        this.notifyTime = notifyTime;
    }

    public Date getNotifyTime() {
        return notifyTime;
    }

    public void setPaytype(String paytype) {
        this.paytype = paytype;
    }

    public String getPaytype() {
        return paytype;
    }

    public void setPayResponse(String payResponse) {
        this.payResponse = payResponse;
    }

    public String getPayResponse() {
        return payResponse;
    }

    public void setPayOrderNo(String payOrderNo) {
        this.payOrderNo = payOrderNo;
    }

    public String getPayOrderNo() {
        return payOrderNo;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public String getProduct() {
        return product;
    }

    public void setPrepayId(String prepayId) {
        this.prepayId = prepayId;
    }

    public String getPrepayId() {
        return prepayId;
    }

    public void setBizOrderNo(String bizOrderNo) {
        this.bizOrderNo = bizOrderNo;
    }

    public String getBizOrderNo() {
        return bizOrderNo;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public String getYuan() {
        return yuan;
    }

    public void setYuan(String yuan) {
        this.yuan = yuan;
    }

    public String getIpInfo() {
        return ipInfo;
    }

    public void setIpInfo(String ipInfo) {
        this.ipInfo = ipInfo;
    }

    public String getRefundNotifyUrl() {
        return refundNotifyUrl;
    }

    public void setRefundNotifyUrl(String refundNotifyUrl) {
        this.refundNotifyUrl = refundNotifyUrl;
    }

    public Integer getRefundEnable() {
        return refundEnable;
    }

    public void setRefundEnable(Integer refundEnable) {
        this.refundEnable = refundEnable;
    }

    public String getRefundRemark() {
        return refundRemark;
    }

    public void setRefundRemark(String refundRemark) {
        this.refundRemark = refundRemark;
    }

    public Integer getSanbox() {
        return sanbox;
    }

    public void setSanbox(Integer sanbox) {
        this.sanbox = sanbox;
    }


    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("orderNo", getOrderNo()).append("app", getApp()).append("kkid", getKkid()).append("totalFee",
                getTotalFee()).append("status", getStatus()).append("ip", getIp()).append("payResult", getPayResult()).append("payTime", getPayTime()).append("notifyStatus", getNotifyStatus()).append("notifyTime", getNotifyTime()).append("paytype", getPaytype()).append("payResponse", getPayResponse()).append("payOrderNo", getPayOrderNo()).append("createdTime", getCreatedTime()).append("product", getProduct()).append("prepayId", getPrepayId()).append("bizOrderNo", getBizOrderNo()).append("notifyUrl", getNotifyUrl()).toString();
    }
}
